package com.yzw.phonestoreservice.service;

import com.yzw.phonecommen.common.R;
import com.yzw.phonestoreservice.pojo.PhoneInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yzw.phonestoreservice.vo.PhoneinfoVo;
import com.yzw.phonestoreservice.vo.SkuDataVo;

import java.util.List;
import java.util.Map;

/**
* @author YU
* @description 针对表【phone_info(商品表)】的数据库操作Service
* @createDate 2022-11-02 17:38:28
*/
public interface PhoneInfoService extends IService<PhoneInfo> {

    R phoneinfoList(Map<String, Object> parameters);

    R phoneinfoDel(Integer[] ids);

    R phoneinfoById(Integer id);

    R phoneinfoAdd(PhoneInfo phoneInfo);

    R phoneinfoUpdate(PhoneInfo phoneInfo);

    Map<Object,Object> moveIndex();

    Map<String, Object> findSpecsByPhoneId(Integer id);

    List<PhoneinfoVo> findByCategoryType(Integer type);
}
